package com.inspire.client01.tank;

import java.util.Random;
import java.util.UUID;

/**
 * @author ：inspire
 * @date ：Created in 2022/8/12 14:41
 * @description：
 * @modified By：inspire
 * @version:
 */
public class Tank {
    private UUID id = UUID.randomUUID();

    private int x, y;

    private Dir dir = Dir.DOWN;

    private boolean moving = false;

    private Group group = Group.BAD;

    public Tank(UUID id, int x, int y, Dir dir, boolean moving, Group group) {
        this.id = id;
        this.x = x;
        this.y = y;
        this.dir = dir;
        this.moving = moving;
        this.group = group;
    }

    public UUID getId() {
        return id;
    }

    public void setId(UUID id) {
        this.id = id;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public Dir getDir() {
        return dir;
    }

    public void setDir(Dir dir) {
        this.dir = dir;
    }

    public boolean isMoving() {
        return moving;
    }

    public void setMoving(boolean moving) {
        this.moving = moving;
    }

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }
}
